<ion-slides [options]="mySlideOptions" class="slide-title">
    <ion-slide *ngFor="let slide of slides;let i=index;">
        <div (click)="onClick(i)">
            <span lass="slide-title-unit" [ngClass]="{'slide-title-active': selectedIndex == i}">{{slide}}</span>
        </div>
    </ion-slide>
</ion-slides>